package com.uplift.mobile.realty.service;

import com.uplift.common.base.ServiceReslut;
import com.uplift.mobile.realty.model.RealtyLease;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

public interface IRealtyLeaseService {
	public List<Map<String, Object>> queryRealtyLease(RealtyLease realtyLease);

	@Transactional
	public ServiceReslut addRealtyLease(RealtyLease realtyLease);

	@Transactional
	public ServiceReslut updateRealtyLease(RealtyLease realtyLease);

	@Transactional
	public ServiceReslut deleteRealtyLease(RealtyLease realtyLease);

	public ServiceReslut endRealtyLease(RealtyLease realtyLease);

	/**
	 * 查询租约下广告列表
	 * @param realtyLeaseId
	 * @return
	 */
	public List<Map<String, Object>> queryRealtyLeaseAd(String realtyLeaseId);

	/**
	 * 获取单个租约信息
	 * @param realtyLease
	 * @return
	 */
	Map<String, Object> getRealtyLease(RealtyLease realtyLease);
}
